package com.example.demo.modules.customDefine.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.modules.customDefine.entity.ModuleFieldLongTextData;
import com.example.demo.modules.customDefine.mapper.ModuleFieldLongTextDataMapper;
import com.example.demo.modules.customDefine.service.ModuleFieldLongTextDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class ModuleFieldLongTextDataServiceImpl extends ServiceImpl<ModuleFieldLongTextDataMapper, ModuleFieldLongTextData> implements ModuleFieldLongTextDataService {

    @Autowired
    private ModuleFieldLongTextDataMapper moduleFieldLongTextDataMapper;

    //查询所有
    @Override
    public List<ModuleFieldLongTextData> listAll() {
        List<ModuleFieldLongTextData> moduleFieldLongTextDatas = this.list();
        return moduleFieldLongTextDatas;
    }

    //条件查询
        @Override
    public ModuleFieldLongTextData listOne(Long id) {
        ModuleFieldLongTextData moduleFieldLongTextData = this.getById(id);
        return moduleFieldLongTextData;
    }

    //保存
        @Override
    public int insert(ModuleFieldLongTextData moduleFieldLongTextData){
        return moduleFieldLongTextDataMapper.insert(moduleFieldLongTextData);

    }

}
